Skip to content

Fix bug when comparing strings#1

Open
DavidWhitlock wants to merge 3 commits into
Project1from
Project_1_compare_strings_with_equals
Open

Fix bug when comparing strings#1
DavidWhitlock wants to merge 3 commits into
Project1from
Project_1_compare_strings_with_equals

Conversation

@DavidWhitlock

Copy link
Copy Markdown
Collaborator

Use the equals() method to compare String values instead of ==. This fixes a very subtle bug that only surfaced when the main method was run from the command line.

…fixes a very subtle bug that only surfaced when the main method was run from the command line.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants